const Router = require('koa-router');
const userRoute = require('./user.route');
const articleRoute = require('./article.route');
const tagRoute = require('./tag.route');
const sourceRoute = require('./source.route');

const router = new Router();
const api = new Router();

api.use(userRoute);
api.use(articleRoute);
api.use(tagRoute);
api.use(sourceRoute);

router.use('/api/v1', api.routes());

module.exports = router;
